//
//  RecommendCollectionViewCell.m
//  Cartoon
//
//  Created by dllo on 15/10/28.
//  Copyright © 2015年 YSZ. All rights reserved.
//

#import "RecommendCollectionViewCell.h"

@implementation RecommendCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.titleLabel = [[UILabel alloc] init];
        self.smallLabel = [[UILabel alloc] init];
        self.lastupLabel = [[UILabel alloc] init];
        self.tuijianImgae = [[UIImageView alloc] init];
        
        [self.contentView addSubview:_titleLabel];
        [self.contentView addSubview:_smallLabel];
        [self.contentView addSubview:_lastupLabel];
        [self.contentView addSubview:_tuijianImgae];
        
        
    }
    return self;
}


- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{

    [super applyLayoutAttributes:layoutAttributes];
    
    
    _tuijianImgae.frame = CGRectMake(0, 0, self.contentView.bounds.size.width, self.contentView.bounds.size.height - 20);
    _smallLabel.frame = CGRectMake(10, self.contentView.bounds.size.height - 22, self.contentView.bounds.size.width / 2, 15);
    
    
    
    

}


@end
